/***
 * @description axios封装
 * @file api.ts
 * @author andy
 * @date 2024/3/22 16:40
 */
// file:api.s
// 1、导入axios以及拦截器
import service from "./request";

// demo接口1
export const sendCode = (mobile: any) => {
  return service({
    url: "/user/index/sendCode/" + mobile,
    method: "post",
  });
};

// demo接口2
export const login = (data: any) => {
  return service({
    url: "/user/index/login",
    method: "post",
    data,
  });
};
